<div class="block_in_wrapper">
	
	<h2>{#generate_report#}</h2>
	
	<p>{#obligatory_fields#}</p>
	
	<form class="main" method="post" action="managereports.php">
		
		<input type="hidden" name="action" value="generate" />
		
		<fieldset>
			
			<div class="row">
				<label for="name">
					{#report_name#}: <span class="required-field">*</span>
				</label>
				<input type="text" name="name" id="name" value="" />
			</div>
			
			<div class="row">
				<label for="company_id">
					{#company#}: <span class="required-field">*</span>
				</label>
				<select name="company_id" id="company_id">
					<option value="0">{#select_default_report_company#}</option>
					{foreach key=key item=company from=$companies}
					<option value="{$company.ID}">{$company.hierarchy}</option>
					{/foreach}
				</select>
			</div>
			
			<div class="row">
				<label for="date">{#date#}</label>
				<input type="text" name="date" id="date" value="{$current_day}" />
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="checkbox" name="date_range" id="date_range" value="1" class="report-radio-reset" />
				<label for="date_range" class="report-label-reset">{#date_range#}</label>
			</div>
			
			<div class="row" id="date-range-end-row" style="display:none;">
				<label for="date_end">{#date_range_end#}</label>
				<input type="text" name="date_end" id="date_end" value="{$next_day}" disabled />
			</div>
			
			<div class="clearfix"></div>
			
			<div class="row" style="margin-top:15px;">
				<label>
					{#project#}: <span class="required-field">*</span>
				</label>
				<input type="radio" name="project_status" id="project_all" value="all" checked="checked" class="report-radio-reset" />
				<label for="project_all" class="report-label-reset">{#projects_all#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="radio" name="project_status" id="project_finished" value="finished" class="report-radio-reset" />
				<label for="project_finished" class="report-label-reset">{#projects_finished#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="radio" name="project_status" id="project_pending" value="pending" class="report-radio-reset" />
				<label for="project_pending" class="report-label-reset">{#projects_pending#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="radio" name="project_status" id="project_list" value="list" class="report-radio-reset" />
				<label for="project_list" class="report-label-reset">{#projects_list#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<select name="project_id" id="project_id">
					{foreach key=key item=item from=$projects}
					<option value="{$item.ID}">{$item.name}</option>
					{/foreach}
				</select>
			</div>
			
			<div class="clearfix"></div>
			
			<div class="row" style="margin-top:15px;">
				<label>{#milestone#}</label>
				<input type="radio" name="milestone_status" id="milestone_all" value="all" class="report-radio-reset" checked="checked" />
				<label for="milestone_all" class="report-label-reset">{#milestones_all#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="radio" name="milestone_status" id="milestone_finished" value="finished" class="report-radio-reset" />
				<label for="milestone_finished" class="report-label-reset">{#donemilestones#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="radio" name="milestone_status" id="milestone_pending" value="pending" class="report-radio-reset" />
				<label for="milestone_pending" class="report-label-reset">{#milestones_pending#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<input type="radio" name="milestone_status" id="milestone_list" value="list" class="report-radio-reset" />
				<label for="milestone_list" class="report-label-reset">{#milestones_list#}</label>
			</div>
			
			<div class="row">
				<label>&nbsp;</label>
				<select name="milestone_id" id="milestone_id">
					{foreach key=key item=item from=$milestones}
					<option value="{$item.ID}">{$item.name}</option>
					{/foreach}
				</select>
			</div>
			
			<div class="row inline">
				<input type="checkbox" name="project_files" id="project_files" value="1" />
				<label for="project_files">{#project_files_label#}</label>
			</div>
			
			<div class="row-butn-bottom">
				<label>&nbsp;</label>
				<button type="submit" onfocus="this.blur();">{#generate#}</button>
				<button onclick="blindtoggle('generate-report-wrap');toggleClass('generate-report-add','add','add-active');return false;" onfocus="this.blur();">{#cancel#}</button>
			</div>
			
		</fieldset>
		
	</form>
	
</div>

<div class="content-spacer"></div>